<?php

namespace backend\models;

use Yii;
use yii\web\IdentityInterface;

/**
 * This is the model class for table "{{%goods_name}}".
 *
 * @property integer $user_id
 * @property string  $username
 * @property string  $password
 * @property string  $mobile_phone
 * @property string  $last_ip
 * @property string  $last_time
 * @property string  $permission_name
 */
class GoodsName extends \yii\db\ActiveRecord
{
    const STATUS_DELETED = 0;
    const STATUS_ACTIVE = 10;

    public $password_repeat;

    /**
     * @inheritdoc
     */
    public static function tableName ()
    {
        return '{{%goods_name}}';
    }

    /**
     * @inheritdoc
     */
    public function rules ()
    {
        return [
            [ [ 'name'] , 'required' ] ,
            [ [ 'ctime' ,'utime' ] , 'string' ] ,
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels ()
    {
        return [
            'id'                 => 'goods ID' ,
            'name'               => '物资名称' ,
            'ctime'              => '创建时间' ,
            'utime'              => '更新时间' ,

        ];
    }


}
